package com.haoliang.spring.context.xml;

import com.haoliang.spring.context.model.BeanModel;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author zhaohaoliang
 * @Date 创建于 上午9:01 2019/3/10
 * @Description 请输入类的描述信息
 */
public class MainXmlContext {

    /**
     * 主函数
     * @param args
     */
    public static void main(String[] args) {

        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans.xml");
        BeanModel beanModel = applicationContext.getBean("beanModel", BeanModel.class);
        System.out.println(beanModel);

    }
}
